<%@ page import="pojo.Student" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 33503
  Date: 2023/11/25
  Time: 14:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <title>学生个人信息</title>
    <style>
        input {
            width: 300px;
            height: 30px;
        }
        .student-box{background-color: white;color: black; margin-left: 230px; margin-top: 20px; border-radius: 10px}
        .in-student-box{background: rgba(255,255,255,0.6);  box-shadow: 4px 4px 4px 4px #b3d4fc; padding: 10px; margin: 10px; width: 50%; font-size: 20px; border-radius: 15px}
    </style>
</head>
<body>
<%--菜单栏--%>
<jsp:include page="student_menu.jsp"></jsp:include>
<h1 align="center" style="margin-left: 230px">学生个人信息</h1>
<div align="center" class="student-box">
    <div align="center" class="in-student-box">
        <%
            Student s1=(Student)session.getAttribute("LOGIN_STUDENT");
        %>
        <form method="POST" action="${pageContext.request.contextPath}/UpdateStudent">
            学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号: <input type="text" name="s_id" value="<%=s1.getS_id()%>" readonly/><br/><br/>

            姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名: <input type="text" name="s_name" value="<%=s1.getS_name()%>" /><br/><br/>

            学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;院: <input type="text" name="college" value="<%=s1.getCollege()%>" /><br/><br/>

            班&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级: <input type="text" name="s_class" value="<%=s1.getS_class()%>" /><br/><br/>

            联系方式: <input type="text" name="s_phone" value="<%=s1.getS_phone()%>" /><br/><br/>

            密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码: <input type="text" name="s_pwd" value="<%=s1.getS_pwd()%>" /><br/><br/>

            <input type="submit" value="保存修改" onclick="alert('修改成功！将回到登录页面重新登录')" style="background-color: #286090; color: white; width: 100px;height: 35px"/>
        </form>
    </div>
</div>
</body>
</html>

